<template>
    <XtxBread>
        <XtxBreadItem to="/">首页</XtxBreadItem>
        <XtxBreadItem :to="`/category/${filterSubData.parentId}`">{{ filterSubData.parentName }}</XtxBreadItem>
        <XtxBreadItem>{{ filterSubData.name }}</XtxBreadItem>
    </XtxBread>
</template>

<script>
export default {
    name: 'SubBread'
}
</script>

<script setup>
import { inject } from 'vue'

const filterSubData = inject('filterSubData')
</script>